const { DataTypes } = require("sequelize");
const sequelize = require("../db");
const moment = require("moment");
const Device = sequelize.define(
  "device",
  {
    number: {
      type: DataTypes.STRING,
    },
    name: {
      type: DataTypes.STRING,
    },
    size: {
      type: DataTypes.STRING,
    },
    type: {
      type: DataTypes.STRING,
    },
    warehouse: {
      type: DataTypes.STRING,
    },
    address: {
      type: DataTypes.STRING,
    },
    people: {
      type: DataTypes.STRING,
    },
    contract: {
      type: DataTypes.STRING,
    },
    producer: {
      type: DataTypes.STRING,
    },
    provider: {
      type: DataTypes.STRING,
    },
    buyTime: {
      type: DataTypes.STRING,
    },
    useTime: {
      type: DataTypes.STRING,
    },
  },
  {
    freezeTableName: false,
    timestamps: false,
  }
);
module.exports = Device;
